package com.ruoyi.production.domain.carton;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 纸箱购买信息对象 carton_purchase
 *
 * @author ruoyi
 * @date 2021-07-10
 */

public class CartonPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long cartonPurchaseId;

    /** 类型 */
    @Excel(name = "类型")
    private Long cartonTypeId;

    /** 规格 */
    @Excel(name = "规格")
    private String cartonSpecification;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 购买量 */
    @Excel(name = "购买量")
    private Long purchaseAmount;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 总价 */
    @Excel(name = "总价")
    private Long totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setCartonPurchaseId(Long cartonPurchaseId)
    {
        this.cartonPurchaseId = cartonPurchaseId;
    }

    public Long getCartonPurchaseId()
    {
        return cartonPurchaseId;
    }
    public void setCartonTypeId(Long cartonTypeId)
    {
        this.cartonTypeId = cartonTypeId;
    }

    public Long getCartonTypeId()
    {
        return cartonTypeId;
    }
    public void setCartonSpecification(String cartonSpecification)
    {
        this.cartonSpecification = cartonSpecification;
    }

    public String getCartonSpecification()
    {
        return cartonSpecification;
    }
    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany()
    {
        return originCompany;
    }
    public void setPurchaseAmount(Long purchaseAmount)
    {
        this.purchaseAmount = purchaseAmount;
    }

    public Long getPurchaseAmount()
    {
        return purchaseAmount;
    }
    public void setPurchaseTime(Date purchaseTime)
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime()
    {
        return purchaseTime;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setTotalPrice(Long totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Long getTotalPrice()
    {
        return totalPrice;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartonPurchaseId", getCartonPurchaseId())
            .append("cartonTypeId", getCartonTypeId())
            .append("cartonSpecification", getCartonSpecification())
            .append("originCompany", getOriginCompany())
            .append("purchaseAmount", getPurchaseAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
